package com.example.random;


import java.util.Random;

/**
 * 随机生成[1-21] 之间的整数
 */
public class RandomNumberTest2 {
    public static void main(String[] args) {
        Random random=new Random();
        random.nextInt(21);
    }
}
